package cn.monkey.transport.core;

public class SimpleDelegateExchange implements DelegateExchange {

    private final Exchange delegate;

    public SimpleDelegateExchange(Exchange delegate) {
        this.delegate = delegate;
    }

    @Override
    public Exchange delegate() {
        return this.delegate;
    }

    @Override
    public ExchangeContext context() {
        return this.delegate().context();
    }
}
